package KVtext;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
class Message<T> {
    private T message ;

    public T getMessage() {
        return message;
    }

    public void setMessage(T message) {
        this.message = message;
    }

}
public class Text {
    public static void main(String[] args) {
        Message<String> message1 = new Message<>() ;
        message1.setMessage("比特就业课欢迎您");
        Message<Integer> message2 =new Message<>();
        message2.setMessage(12);
        fun(message1);
        fun(message2);
    }
    public static void fun(Message<?> temp){
        System.out.println(temp.getMessage());
    }

}
